//
//  Text_FullScreen.swift
//  Demo_01
//
//  Created by apple on 2020/7/21.
//  Copyright © 2020 Joseph. All rights reserved.
//

import SwiftUI

// 通过edgesIgnoringSafeArea，忽略安全区域，使文本框撑满屏幕。
struct Text_FullScreen: View {
    var body: some View {
        Text("Hello World")
        .frame(minWidth: 0, maxWidth: .infinity, minHeight: 0, maxHeight: .infinity)
        .background(Color.orange)
        .font(.largeTitle)
        .edgesIgnoringSafeArea(.all)
    }
}

struct Text_FullScreen_PreViews: PreviewProvider {
    static var previews: some View {
        Text_FullScreen()
    }
}
